pkgname=vdr-xineliboutput
pkgver=1.0.0rc1
pkgrel=1
arch=('i686')
pkgdesc="A xinelib output plugin for VDR"
url="http://sourceforge.net/projects/xineliboutput/"
license=('GPL')
depends=('vdr' 'xine-lib')
source=(http://dl.sourceforge.net/sourceforge/xineliboutput/$pkgname-$pkgver.tgz \
	xineliboutput-install.diff)
md5sums=('807395c7c25962e083223bd8e6115c13'
         'c8f9a2c73aab21b361293d8ab09e869b')

build() {
  cd $startdir/src/xineliboutput-$pkgver

  patch -Np1 -i $startdir/src/xineliboutput-install.diff || return 1

  sed -i \
	 -e 's:@cp $@ :install -D -m 755 $@ $(DESTDIR):' \
	 Makefile
  make VDRDIR=/usr/include/vdr VDRINCDIR=/usr/include LIBDIR=/usr/lib/vdr \
       DESTDIR=$startdir/pkg install || return 1
}
